package com.wfs.springbootautoconfigure.controller;

import com.wfs.springbootautoconfigure.autoconfigure.GreetingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Autowired private GreetingService service;

    @RequestMapping("/hello")
    public String hello(){
        return "Hello World";
    }
    @RequestMapping("/sayhello")
    public String sayHello(){
        return service.sayHello();
    }
}
